<?php

namespace app\validate\admin\building;

use think\Validate;

class materialsValidate extends Validate
{

    protected $rule = [
        'name' => 'require',
        'parent_id' => 'require',
        'visibility' => 'require',
    ];
    protected $message = [
        'name.require' => '名称不能为空',
        'parent_id' => '上级id不能为空',
        'visibility' => '是否显示不能为空',
    ];

}